//
//  ViewFactory.h
//  DuoBao
//
//  Created by arons on 16/5/6.
//  Copyright © 2016年 aron. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DBRefreshGifHeader.h"

@interface DBTextField : UIView

@property (nonatomic, strong) UIImageView* userNameIcon;
@property (nonatomic, strong) UIButton* extBtn;
@property (nonatomic, strong) UITextField* inputTF;

- (instancetype)initWithFrame:(CGRect)frame
               withNormalIcon:(NSString*)normalIcon
           withHighLightlIcon:(NSString*)hightLightIcon
                    withTFTag:(int)TFTag
           withTFKeyboardType:(UIKeyboardType)keyboardType
                   isTFSecure:(BOOL)isTFSecure
              withPlaceHolder:(NSString*)placeHolder
        withExtBtnNormalImage:(NSString*)extBtnNormalIcon
       withExtBtnSelectdImage:(NSString*)extBtnSelectlIcon
                 extBtnTarget:(id)target
                 extBtnAction:(SEL)extBtnAction;

@end


@class MJRefreshGifHeader;
@interface ViewFactory : NSObject

+ (DBRefreshGifHeader*)generateRefreshGifHeaderWithTarget:(id)tagerget refreshingAction:(SEL)action;


+ (DBTextField*)generateTextFieldViewWithFrame:(CGRect)containerFrame
                                withNormalIcon:(NSString*)normalIcon
                            withHighLightlIcon:(NSString*)hightLightIcon
                                     withTFTag:(int)TFTag
                            withTFKeyboardType:(UIKeyboardType)keyboardType
                                    isTFSecure:(BOOL)isTFSecure
                               withPlaceHolder:(NSString*)placeHolder
                         withExtBtnNormalImage:(NSString*)extBtnNormalIcon
                        withExtBtnSelectdImage:(NSString*)extBtnSelectlIcon
                                  extBtnTarget:(id)target
                                  extBtnAction:(SEL)extBtnAction ;

@end
